package monitor;
import org.omg.CORBA.ORB;

import lagern.*;

/**
 * Implementation of the interface MonitorPOA
 * @author Laurine and Vincent
 *
 */
public class MonitorImpl extends MonitorPOA{

	@Override
	public void aktion(String user, String log) {
		System.out.println("User: "+user+" Message: "+log);
	}

	@Override
	public void quit() {
	        System.out.println("Shutdown of the monitor..");
	        final ORB orb = super._orb();
	        new Thread() {
	            public synchronized void run(){
	                orb.shutdown(true);
	             }
	        }.start();
	  }
}
